<template>
  <div class="col card p10">
    <label class="title">传感器数据</label>
    <div class="row_center mt" style="align-items: flex-start;">
      <div class="col" style="align-items: flex-end;">
        <Point name="保温门打开" :value="mainState.sw_sensor.is_heat_open" />
        <Point class="mt" name="保温门关闭" :value="mainState.sw_sensor.is_heat_close" />
        <Point class="mt" name="升降报警" :value="mainState.sw_sensor.is_updown_alm" />
        <Point class="mt" name="升降零点" :value="mainState.sw_sensor.is_updown_origin" />
        <Point class="mt" name="升降极限" :value="mainState.sw_sensor.is_updown_origin2" />
      </div>
      <div class="col ml" style="align-items: flex-end;">
        <Point name="旋转报警" :value="mainState.sw_sensor.is_rotate_alm" />
        <Point class="mt" name="旋转零点" :value="mainState.sw_sensor.is_rotate_origin" />
        <Point class="mt" name="煮面室内门打开" :value="mainState.sw_sensor.is_pasta_open" />
        <Point class="mt" name="煮面室内门关闭" :value="mainState.sw_sensor.is_pasta_close" />
        <Point class="mt" name="煮面室有东西" :value="mainState.sw_sensor.is_pasta_check" />
      </div>
      <div class="col ml" style="align-items: flex-end;">
        <Point name="外推货报警" :value="mainState.sw_sensor.is_extern_push_alm" />
        <Point class="mt" name="外推货前进" :value="mainState.sw_sensor.is_extern_push_front" />
        <Point class="mt" name="外推货后退" :value="mainState.sw_sensor.is_extern_push_back" />
        <Point class="mt" name="取货机械臂报警" :value="mainState.sw_sensor.is_fetch_alm" />
        <Point class="mt" name="托盘温度传感器" :value="mainState.sw_sensor.is_tray_ok" />
        <Point class="mt" name="轨道温度传感器" :value="mainState.sw_sensor.is_track_ok" />
      </div>
      <div class="col ml" style="align-items: flex-end;">
        <Point name="取物门打开" :value="mainState.sw_sensor.is_pick_open" />
        <Point class="mt" name="取物门关闭" :value="mainState.sw_sensor.is_pick_close" />
        <Point class="mt" name="取物门报警" :value="mainState.sw_sensor.is_pick_alm" />
        <Point class="mt" name="取物门防夹手1" :value="mainState.sw_sensor.is_pick_prot1" />
        <Point class="mt" name="取物门防夹手2" :value="mainState.sw_sensor.is_pick_prot2" />
        <Point class="mt" name="取物门光栅" :value="mainState.sw_sensor.is_pick_raster" />
      </div>
      <div class="col ml" style="align-items: flex-end;">
        <Point name="补货按钮按下" :value="mainState.sw_sensor.is_cargo_btn"/>
        <Point class="mt" name="大门关闭" :value="mainState.sw_sensor.is_door_close" />
        <Point class="mt" name="冰箱门关闭" :value="mainState.sw_sensor.is_fridge_close"/>
      </div>
    </div>
    <div class="row_center mt" style="align-items: flex-start;">
      <div class="col">
        <div class="row_center">
          <label>轨道温度:</label>
          <label style="width: 30px;">{{ mainState.track }}</label>
        </div>
        <div class="row_center">
          <label>托盘温度:</label>
          <label style="width: 50px;">{{ mainState.tray }}</label>
        </div>
      </div>
      <div class="col ml">
        <div class="row_center">
          <label>机械臂传感器:</label>
          <label style="width: 50px;">{{ mainState.fetch_position }}</label>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">

import Point from '../Point.vue';
import { mainState } from '../../service/main_def';

</script>
